/* eslint-disable */
'use strict'

const config = () => {
  return {
    appenders: [{
      type: 'clustered',
      appenders: [{
        type: 'logLevelFilter',
        level: process.env.NODE_ENV === 'dev' ? 'TRACE' : 'INFO',
        appender: {
          type: 'dateFile',
          filename: '../log/server.log',
          pattern: '-yyyy-MM-dd',
          alwaysIncludePattern: false
        }
      }, {
        type: 'logLevelFilter',
        level: 'ERROR',
        appender: {
          type: 'file',
          filename: '../log/error.log'
        }
      }]
    }]
  }
}

module.exports = config